package net.zz.base.exception;


/**
 * Created by ZaoSheng on 2015/5/9.
 */
public class CommonException extends RuntimeException {

	private static final long serialVersionUID = 1L;

	private int code = 0;
	private String message;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public CommonException(int code, String message) {
		this.code = code;
		this.message = message;
	}

	public CommonException(int code) {
		this.code = code;
	}

	public CommonException(String message) {
		this.message = message;
	}
	
	public CommonException() {}

	
}
